package thread.test2;

public class ThreadTest2 extends Thread {

    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName()+"=>实现run方法");
    }

    public static void main(String[] args) throws InterruptedException {
        ThreadTest2 myThread=new ThreadTest2();
        myThread.start();
        myThread.sleep(100);
        myThread.suspend();
    }
}
